﻿@model www.SService.RelaxContactDataContract
@{
    ViewBag.Title = "Cập nhật liên lạc";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

@if (Model != null)
{
    <div class="content">
        <fieldset style="width: 99%; height: auto; overflow: hidden; border: 1px solid #008080;">
            <legend>Cập nhật Thông tin liên lạc</legend>
            <div class="clear"></div>
            @using (Html.BeginForm("Edit", "Contact", FormMethod.Post, new {id = "frmAdd"}))
            {
                @Html.Hidden("id", Model.Id)
                <div class="row">
                    <div class="col-left">Họ tên</div>
                    <div class="col-right">@Html.TextBox("txtName", Model.Name, new {@class = "textbox"})
                        <span class="red">*</span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-left">Địa chỉ</div>
                    <div class="col-right">@Html.TextBox("txtAddress", Model.Address, new {@class = "textbox"})<span class="red">*</span></div>
                </div>
                <div class="row">
                    <div class="col-left">Số ĐT</div>
                    <div class="col-right">@Html.TextBox("txtsdt", Model.Tel, new {@class = "textbox"})<span class="red">*</span></div>
                </div>
                <div class="row">
                    <div class="col-left">Email</div>
                    <div class="col-right">@Html.TextBox("txtEmail", Model.Email, new {@class = "textbox"})<span class="red">*</span></div>
                </div>
                <div class="row">
                    <div class="col-left">Trạng thái</div>
                    <div class="col-right">@Html.CheckBox("chkActive", Model.Active == 1)</div>
                </div>
                <div class="row">
                    <div class="col-left"></div>
                    <div class="col-right">
                        <input type="submit" id="Submit1" class="button" name="submit1" value="Cập nhật" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Html.ActionLink("Quay lại", "Index", "Contact")
                    </div>
                </div>
            }

        </fieldset>
    </div>
}